unit settings;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, strings;

type
  TForm2 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    Server: TEdit;
    Port: TEdit;
    Channel: TEdit;
    Nick: TEdit;
    Password: TEdit;
    Button1: TButton;
    Button2: TButton;
    procedure FormCreate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

{$R *.dfm}

procedure TForm2.FormCreate(Sender: TObject);
begin
Server.Text  := irc_server;
Port.Text    := irc_port;

Channel.Text := irc_channel;
Nick.Text    := irc_nick;
Password.Text:= irc_nickpass;
end;

procedure TForm2.Button1Click(Sender: TObject);
begin
irc_server := Server.Text;
irc_port   := Port.Text;

irc_channel := Channel.Text;
irc_nick    := Nick.Text;
irc_nickpass:= Password.Text;
self.Close;
end;

procedure TForm2.Button2Click(Sender: TObject);
begin
self.Close;
end;

end.
